<!-- nextRowset()方法口岸和结果集中指针下移 -->
<?php 


try {
	$pdo = new PDO('mysql:host=localhost; dbname=exercise', 'root', 'root');
	$sql = 'call exercise()';
	$stmt = $pdo->query($sql);
	$rowset = $stmt->fetchAll(PDO::FETCH_ASSOC);
	print_r($rowset);

	echo '<hr color="blue" />';
	$stmt->nextRowset();
	$rowset = $stmt->fetchAll(PDO::FETCH_ASSOC);
	print_r($rowset);
} catch (PDOException $e) {
	$e->getMessage();
}



 ?>